﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HFModel.VO
{
    public class CitySession
    {
        public static int CityID { get; set; }

        public static string SetSqlString(string strWhere)
        {
            if (HFModel.VO.CitySession.CityID != 0)
            {
                if (strWhere == "")
                {
                    strWhere = "CityID = " + HFModel.VO.CitySession.CityID.ToString();
                }
                else
                {
                    if (strWhere.ToLower().IndexOf("cityid", 0) > -1)
                    { }
                    else
                    {
                        strWhere = strWhere + " and CityID = " + HFModel.VO.CitySession.CityID.ToString();
                    }
                }
            }
            return strWhere;
        }
    }
}
